﻿@using XiaoYuStock.Model
@using XiaoYuStock.Model.Models
@using XiaoYuStock.Model.Request
@using XiaoYuStock.WebApp.Controls
@model ShareTarget
@{
    Layout = "~/Views/Shared/_Layout.Edit.cshtml";
}
@section PageSpecificStyleSheetIncludes{
}
@section PageSpecificJavascriptIncludes{
}
@section MainContent{
    <div class="portlet-body form-horizontal form-bordered form-row-stripped">
        <div class="row-fluid">
            <div class="control-group">
                <label class="control-label"><span class="required">*</span>股票代码：</label>
                <div class="controls">
                    @Html.TextBoxFor(m => m.ShareCode, new { @class = "m-wrap" })
                </div>
            </div>

            <div class="control-group">
                <label class="control-label">指导价1：</label>
                <div class="controls">
                    @Html.TextBoxFor(m => m.PriceOne, new { @class = "m-wrap" })
               
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">时间：</label>
                <div class="controls">
                    @Html.TextBoxFor(m => m.OneDate, new { @class = "m-wrap small" })
                </div>
            </div>

            <div class="control-group">
                <label class="control-label">指导价2：</label>
                <div class="controls">
                    @Html.TextBoxFor(m => m.PriceTwo, new { @class = "m-wrap" })
                    
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">时间：</label>
                <div class="controls">
                    @Html.TextBoxFor(m => m.TwoDate, new { @class = "m-wrap small" })
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">指导价3：</label>
                <div class="controls">
                    @Html.TextBoxFor(m => m.PriceThree, new { @class = "m-wrap" })
                 

                </div>
            </div>
            <div class="control-group">
                <label class="control-label">时间：</label>
                <div class="controls">
                    @Html.TextBoxFor(m => m.ThreeDate, new { @class = "m-wrap small" })
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">指导价4：</label>
                <div class="controls">
                    @Html.TextBoxFor(m => m.PriceFour, new { @class = "m-wrap" })
                    
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">时间：</label>
                <div class="controls">
                    @Html.TextBoxFor(m => m.FourDate, new { @class = "m-wrap small" })
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">指导价5：</label>
                <div class="controls">
                    @Html.TextBoxFor(m => m.PriceFive, new { @class = "m-wrap small" })
                 

                </div>
            </div>
            <div class="control-group">
                <label class="control-label">时间：</label>
                <div class="controls">
                    @Html.TextBoxFor(m => m.FiveDate, new { @class = "m-wrap" })
                </div>
            </div>
        </div>
    </div>
}
<script>   
    var dates = $("#OneDate, #TwoDate, #ThreeDate, #FourDate, #FiveDate").datepicker({
        dateFormat: "yy-mm-dd",
        defaultDate: "+1w",
        changeMonth: true,
        changeYear: true,
        numberOfMonths: 1,
        onSelect: function (selectedDate) {
            var option = this.id == "startDate" ? "minDate" : "maxDate",
            instance = $(this).data("datepicker"),
            date = $.datepicker.parseDate(
                instance.settings.dateFormat ||
                $.datepicker._defaults.dateFormat,
                selectedDate, instance.settings);
            dates.not(this).datepicker("option", option, date);
        }
    });

</script>


